<?php if (!defined('THINK_PATH')) exit();?>﻿<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />


<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/static/h-ui/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/lib/icheck/icheck.css" />
<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/static/h-ui/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="/ncrm/Public/Admin/static/h-ui/css/style.css" />


<title></title>
</head>
<body>
<article class="page-container">
	<form action="<?php echo U('editpower');?>" method="post" class="form form-horizontal" id="form-admin-role-add">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">权限：</label>
			<div class="formControls col-xs-8 col-sm-9">
			<?php if(is_array($pri)): $i = 0; $__LIST__ = $pri;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><dl class="permission-list">
					<dt>
						<label>
							<input type="hidden" name="roleid" value="<?php echo ($roleid); ?>">
							<input type="checkbox" value="<?php echo ($list["id"]); ?>" 
								<?php  if(in_array($list['id'],$aa)){ echo 'checked'; }else{ echo 'aaa'; }; ?>
							name="pri[]" >
							<?php echo ($list["priname"]); ?>
						 </label>
					</dt>
					<dd>
						<dl class="cl permission-list2">
						<?php if(is_array($list["aaa"])): $i = 0; $__LIST__ = $list["aaa"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><dt>
								<label class="">
									<input type="checkbox" value="<?php echo ($vo["id"]); ?>" 
										<?php  if(in_array($vo['id'],$aa)){ echo 'checked'; }else{ echo $vo['id']; }; ?>
									name="pri[]">
									<?php echo ($vo["priname"]); ?></label>
							</dt><?php endforeach; endif; else: echo "" ;endif; ?>
						</dl>
					</dd>
				</dl><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<button type="submit" class="btn btn-success radius" id="admin-role-save"><i class="icon-ok"></i> 确定</button>
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/ncrm/Public/Admin/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/ncrm/Public/Admin/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="/ncrm/Public/Admin/lib/icheck/jquery.icheck.min.js"></script> 
</body>
</html>